using System.ServiceModel.Channels;
using System.ServiceModel.Description;
using System.ServiceModel.Dispatcher;

namespace RockBus.Hosting
{
    /// <summary>
    /// Serves to indicate (like an attribute) that the endpoint should be treated like a dynamic service endpoint by the RockBusServiceHost
    /// </summary>
    public class DynamicServiceEndpointBehavior : IEndpointBehavior
    {
        public DynamicServiceEndpointBehavior()
        {
        }

        #region IEndpointBehavior Members

        public void AddBindingParameters(ServiceEndpoint endpoint, BindingParameterCollection bindingParameters)
        {
            // Intentionally left blank
        }

        public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime)
        {
            // Intentionally left blank
        }

        public void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher)
        {
            // Intentionally left blank
        }

        public void Validate(ServiceEndpoint endpoint)
        {
            // Intentionally left blank
        }

        #endregion IEndpointBehavior Members
    }
}